The CensorX ActiveX control can be used to alert the user or a programmer if a word or a phrase entered into a text box is a member of a separate list stored as a text file defined at the outset by the programmer.
Typical uses include spellcheckers, teaching aids and word screening.
If the word entered is a match to a member of the set in the list the background color of the text box changes to vbRed (red) and this condition can be detected by the program if desired - the text box does not have to be visible; the control can simply be used as a comparator.
If a match is not made the background color remains as white (&H80000005 to be precise).
Technical:
The control is case insensitive and trailing and leading whitespace in the wordlist is removed - see the sample wordlist.txt for more information.
The 'matched' background color (the control's BackColor property) is vbRed.
The 'un-matched' background color is &H80000005 , but it doesn't matter; just detect vbRed in a If... Then... Else structure.
The filename is wordlist.txt and is stored in the same folder as the control.
A sample wordlist.txt is provided to get you started edit it with 'notepad' and put in your own favorite words (or swear words :-) depending on the application).
Registration Information:
The control is supplied 'as is' so please satisfy yourself that it is suitable for your purpose before using it in any serious way.
If you find the control useful and/or want to use it in a commercial application please send $5 with your Email address if you have one or your postal address if not
to D Taylor
9 Porterfield Rd
Inverness
Scotland
United Kingdom
In return you will get a registered version
Please feel free to pass on the entire unregistered shareware package in its entirety including this document.
Program is copyright ⌐ 1999 D Taylor. All rights reserved